from docx import Document


docx =Document()

print(len(docx.paragraphs))
docx.add_paragraph(text='111')
## 分页符
docx.add_page_break()
docx.add_paragraph(text='222')
docx.add_page_break()
docx.add_paragraph()
print(len(docx.paragraphs))
docx.save(r'D:\Desktop\word\a.docx')